package com.hengxinguotong.hxgtwygsp.ui.main;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hengxinguotong.hxgtwygsp.R;
import com.hengxinguotong.hxgtwygsp.model.Rule;

import java.util.List;

/**
 * Created by CS-Yong
 * 2019/9/2  14:07
 */
public class RuleNoticeAdapter extends BaseQuickAdapter<Rule, BaseViewHolder> {
    public RuleNoticeAdapter(int layoutResId, @Nullable List<Rule> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Rule item) {
        helper.setText(R.id.rule_title,item.getTitle());
        helper.setText(R.id.rule_date,item.getTime());
    }
}
